//
//  SQHomeworkLinkTableViewCell.m
//  energy
//
//  Created by 周曼迪 on 2021/7/15.
//

#import "SQHomeworkLinkTableViewCell.h"

#import "SQHomeworkLinkModel.h"

@implementation SQHomeworkLinkTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(void)setModel:(BaseModel<BaseCellModelProtocol> *)model{
    SQHomeworkLinkModelData * dataModle = model;
    self.lab_title.text = dataModle.ipm_name;
    if ([dataModle.picStr isEqualToString:@"0"]) {
        self.img_pic.image = [UIImage imageNamed:@"notSele"];
    }else if ([dataModle.picStr isEqualToString:@"1"]){
        self.img_pic.image = [UIImage imageNamed:@"selected"];
    }
}


- (IBAction)clickSel:(UIButton *)sender {
    
    self.cellEvent((int)self.indexPath.row);
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
